#************************************************************************#
#                                                                        |
#   Makefile for 2500AD 6502 ctutor					 |
#									 |
#************************************************************************#

2500AD=J:\2500AD
CC=$(2500AD)\bin\c6502.exe
ASM=$(2500AD)\bin\x6502.exe
LINK=$(2500AD)\bin\link.exe
WKPATH=$(2500AD)\c6502
INCLUDEPATH=$(2500AD)\include
+INCLUDE=$(2500AD)\include
+LIB=$(2500AD)\lib
+TEMP=$(2500AD)\temp
CFLAGS=-C -d
AFLAGS=-q -d

target: ctutor.hex
	+@echo make complete: ctutor.hex is up to date

ctutor.hex: c6502sr.obj ctutor.obj
	$(LINK) $(WKPATH)$\ctutor.lnk 

c6502sr.obj: $(WKPATH)$\c6502sr.asm
	$(ASM) $(AFLAGS) $(WKPATH)$\c6502sr.asm

ctutor.obj: $(INCLUDEPATH)$\c6502io.h $(WKPATH)$\ctutor.c
	$(CC) $(CFLAGS) $(WKPATH)$\ctutor.c
